package com.iot.ammeter.entity.web.provider;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 属服务商，组织
 * </p>
 *
 * @author basil
 * @since 2021-09-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_provider")
@ApiModel(value="Provider对象", description="属服务商，组织")
public class Provider implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "服务商id")
    @TableId
    private String providerId;

    @ApiModelProperty(value = "服务商所在省")
    private String province;

    @ApiModelProperty(value = "服务商所在市")
    private String city;

    @ApiModelProperty(value = "服务商所在区")
    private String area;

    @ApiModelProperty(value = "服务商地址")
    private String providerAddress;

    @ApiModelProperty(value = "服务商名称")
    private String providerName;

    @ApiModelProperty(value = "联系人")
    private String contactPerson;

    @ApiModelProperty(value = "手机")
    private String phone;

    @ApiModelProperty(value = "邮箱地址")
    private String email;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "1表示已删除，0表示正常，2表示禁用")
    private Integer providerStatus;


}
